package com.ax.base.common.service;

import com.ax.base.common.domain.BaseChargeRules;
import com.ax.base.common.utils.PageUtils;

import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@Service
public interface BaseChargeRulesService {
    /**
     * 药店充值规则*添加新的规则
     * @param baseChargeRules
     * @return
     */
    public int addBaseChargeRules(BaseChargeRules baseChargeRules);

    /**
     * 药店充值规则*更改规则
     * @param baseChargeRules
     * @return
     */
    public int updateBaseChargeRules(BaseChargeRules baseChargeRules);

    /**
     * 药店充值规则*查询所有规则
     * @param baseChargeRules     flag不传查所有，传1查有效，传0查无效
     * @return
     */
    public List<BaseChargeRules> queryList(Map<String, Object> params);

    /**
     * 药店充值规则*查询单条规则
     * @param baseChargeRules
     * @return
     */
    public BaseChargeRules query(BaseChargeRules baseChargeRules);
    /**
     * 药店规则*删除规则
     * @param chargeRulesId
     * @return
     */
    public int deleteBaseChargeRules(ArrayList<Long> chargeRulesId,Integer flag);
}
